package com.ljl;

import com.alibaba.druid.filter.config.ConfigTools;

public class PasswordEncryptor {
    public static void main(String[] args) throws Exception {
        String password = "lvjialeyeezy0426"; // 替换为你的真实密码
        String[] arr = ConfigTools.genKeyPair(512);
        System.out.println("privateKey:" + arr[0]);
        System.out.println("publicKey:" + arr[1]);
        System.out.println("password:" + ConfigTools.encrypt(arr[0], password));
    }
}
